import request from '@/utils/request'

// 获取生产线数据
export function getFactorys(params) {
  return request({
    url: '/api/practice01/factory/findAll/factory',
    method: 'get',
    params
  })
}

// 获取单个生成线数据
export function getProduct(id) {
  return request({
    url: '/api/practice01/factory/findAll/product',
    method: 'get',
    params: {
      factoryId: id
    }
  })
}

// 查询所有零件
export function findAllPart() {
  return request({
    url: '/api/practice01/factory/findAll/part',
    method: 'get'
  })
}
